<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<style>
			.n-default .n-left,
			.n-default .n-right {
				margin-top: 32px!important;
			}
		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">用户中心</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="user_left"></div>
				<div class="ZZHT-content">

					<div class="ZZHT-user-head clearfix">
						<b>申请线上商城</b>
						<!-- <a href="http://test.izzht.cn/home/users/security.html">返回</a> -->
						<span class="user_bread fr">
        当前位置：<span>用户身份</span>--<span>申请线上商城</span>
						</span>
					</div>
					<div class="mains bz">
						<form>
							<div class="form-group">
								<label class="control-label"><span class="text-label">法人姓名：</span><input type="text" :value="tab.legalPerson" disabled="disabled"></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">身份证号：</span><input type="text" :value="tab.IDnumber" disabled="disabled"></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">企业名称：</span><input type="text" class="bz" :value="tab.companyName" disabled="disabled">
            </label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">营业执照号码：</span><input type="text" class="bz" :value="tab.licenseNo" disabled="disabled">
            </label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">店铺名称：</span><input type="text" class="bz" :value="tab.shopName" disabled="disabled">
            </label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">经营电话：</span><input type="text" class="bz" :value="tab.telephone" disabled="disabled">
            </label>
							</div>
							<div class="sure_btn confirm_online">确认申请</div>
						</form>
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/vue.min.js"></script>
		<script src="../js/jquery.validator.js"></script>
		<script src="../js/zh-CN.js"></script>
		<script type="text/javascript" src="../plugin/layer/layer.js"></script>
		<script src="../js/common.js"></script>
		<script src="../js/common_view.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<script type="text/javascript">
			
			var vm = new Vue({
				el:'.ZZHT-content',
				data:{
					tab:{},
				}
			});
			
			$(function() {
				$.get(SURL+'agentsApplys/selectAgentsApplysInfo', {userId:localStorage.userId}, function (data, textStatus) {
	                console.log(data);
	                vm.tab = data.entity;
	            });
	            
	            //处理申请线上商城
		        $('.confirm_online').click(function () {
		            var ll = ZZHT.msg('数据处理中，请稍候...');
		            $.get(SURL+'sktShops/findByUserId', {userId:localStorage.userId}, function (data, textStatus) {
		                console.log(data);
		                var shopId = data.entity[0].shopId;
		                $.get(SURL+'sktShopApplys/insertShopApplys', {"shopId":shopId,"userId":localStorage.userId}, function (data) {
			                layer.close(ll);
			                console.log(data);
			                ZZHT.msg('申请成功',{icon:6},function(){
			                	location.href="5.html";
			                })
			            });
		            });
		            
		        });
			})
			
		</script>
	</body>

</html>